package com.wxzz.elearing.evaluation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * 工厂体检/星级认证
 * </p>
 *
 * @author
 * @since 2021-04-10
 */
@Data
@ApiModel(value = "BusinessCategoryRule对象", description = "工厂体检/星级认证")
public class BusinessCategoryRule extends BaseEntity {

    @ApiModelProperty(value = "0-工厂体检 1-星级认证")
    private Integer type;

    @NotNull(message = "请传入行业类目id")
    @ApiModelProperty(value = "行业类目id")
    private Long businessCategoryId;

    @ApiModelProperty(value = "一星上限")
    private BigDecimal oneStarUpper;

    @ApiModelProperty(value = "一星下限")
    private BigDecimal oneStarFloor;

    @ApiModelProperty(value = "二星上限")
    private BigDecimal twoStarUpper;

    @ApiModelProperty(value = "二星下限")
    private BigDecimal twoStarFloor;

    @ApiModelProperty(value = "三星上限")
    private BigDecimal threeStarUpper;

    @ApiModelProperty(value = "三星下限")
    private BigDecimal threeStarFloor;

    @ApiModelProperty(value = "四星上限")
    private BigDecimal fourStarUpper;

    @ApiModelProperty(value = "四星下限")
    private BigDecimal fourStarFloor;

    @ApiModelProperty(value = "五星上限")
    private BigDecimal fiveStarUpper;

    @ApiModelProperty(value = "五星下限")
    private BigDecimal fiveStarFloor;

    @ApiModelProperty(value = "工厂体检/星级认证标题")
    private String ruleName;

    @ApiModelProperty(value = "星级介绍")
    private String ruleDetail;

    @ApiModelProperty(value = "星级描述")
    private String ruleDescribe;

    @ApiModelProperty(value = "封面url")
    private String cover;

    @ApiModelProperty(value = "证书编辑文本1")
    private String credentialTextOne;

    @ApiModelProperty(value = "证书编辑文本2")
    private String credentialTextTwo;

    @ApiModelProperty(value = "证书编辑文本3")
    private String credentialTextThree;

    @ApiModelProperty(value = "证书有效期(年)")
    private Integer credentialYear;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否测评过 0-否 1-是")
    private Integer isTest = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "测评人数")
    private Integer testNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "题目数量")
    private Integer topicNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "预计时间分钟")
    private Integer scheduledTime = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "行业类目名称")
    private String businessName;

}
